﻿// -----------------------------------------------------------------------
// <copyright file="Action.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace B13_Ex04_Chen_305274805_Avihoo_201249893
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class Action : MenuItem
    {
        PerformTheAction m_ActionToPerform;
        internal Action(string i_NameAction, PerformTheAction i_actionToPerform)
            : base(i_NameAction)
        {
            m_ActionToPerform = i_actionToPerform;
        }
        internal override void doSomthing()
        {
            Console.Clear();
            m_ActionToPerform.Action();
        }
    }
}
